package com.kuang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
public class User {
    private int id;
    private String name;

    public User(){
        System.out.println("无参构造");
    }

    public User(String name) {
        System.out.println("有参构造");
        this.name = name;
    }

    public User(int id,String name) {
        System.out.println("id有参构造");
        this.id = id;
        this.name = name;
    }

    public void show() {
        System.out.println("name=" + name);
    }
}
